/*
 * @Author: your name
 * @Date: 2022-01-11 15:40:27
 * @LastEditTime: 2022-01-11 16:46:01
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \micro-repo-master\app1\src\shared\actions.js
 */
// /*
//  * @Author: your name
//  * @Date: 2022-01-11 15:40:27
//  * @LastEditTime: 2022-01-11 16:19:21
//  * @LastEditors: Please set LastEditors
//  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
//  * @FilePath: \micro-repo-master\app1\src\shared\actions.js
//  */
// // src/shared/actions.js
import { initGlobalState } from 'qiankun';
export const initialState = {
  token: ''
};
const actions = initGlobalState(initialState)
console.log('actions',actions)
actions.onGlobalStateChange((state, prev) => {
  console.log("主应用: 变更前");
  console.log(prev);
  console.log("主应用: 变更后");
  console.log(state);
});
export default actions